package com.daxue.configtest.exception;

/**
 * @author daxue0929
 * @date 2023/3/23
 */

public abstract class ServiceException extends BaseException
    implements WrappableException<ServiceRuntimeException> {


    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceException(Throwable cause) {
        super(cause);
    }


    @Override
    public ServiceRuntimeException wrap() {
        return ServiceRuntimeException.of(this);
    }
}
